﻿<%@ Page Language="C#" MasterPageFile="~/Template/USER.Master" AutoEventWireup="true" CodeBehind="TimKiemSanPham.aspx.cs" Inherits="BTN04.USER.TimKiemSanPham" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphMenuTrai" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="cplContent" runat="server">
    
<asp:Repeater ID="Repeater1" runat="server" DataSourceID="ObjectDataSource1" >
        <HeaderTemplate>
        <div id="mid_content">
            <ul id="ul" style="margin-left:3px;">
        </HeaderTemplate>
        <ItemTemplate>
            <li id="li">
                <div style="clear:both; display:block;">
                    <div id="top_sanpham">
                    </div>
                    <div id="mid_sanpham">
                        <div style="width:172px; margin-left:10px; margin-left:10px; padding-top:5px;">
                             <a href="chitietsanpham.aspx?idSanPham=<%# Eval("MaSanPham")%>&idMaLoaiSanPham=<%# Eval("MaLoaiSanPham")%>">
                                <img height="150px" src="../<%# Eval("HinhAnh") %>" width="172px" /></a>
                        </div>
                        <div id="ten_sanpham" style="font-size:larger;"> 
                            <a class="link" href="chitietsanpham.aspx?idSanPham=<%# Eval("MaSanPham")%>&idMaLoaiSanPham=<%# Eval("MaLoaiSanPham")%>">
                                <%# Eval("TenSanPham")%></a>
                        </div>
                        <div id="gia_sanpham">Giá : <%# Eval("GiaBan") %> VNĐ
                        </div>
                         <div style="font-weight :bold; display:inline-table; width:172px;"> 
                            <div style="width:60%; float:left; text-align:center;"> 
                                <a class="datmua_chitiet" href ="giohang.aspx?idSanPham=<%# Eval("MaSanPham")%>">
                                        Đặt mua
                                    </a>
                            </div>
                            <div style="width:40%; float:left; text-align:center;"> 
                                <a class="datmua_chitiet"  href ="chitietsanpham.aspx?idSanPham=<%# Eval("MaSanPham")%>&idMaLoaiSanPham=<%# Eval("MaLoaiSanPham")%>">
                                       Chi Tiết
                                    </a>
                            </div>
                                   
                        </div>
                    </div>
                    <div id="bottom_sanpham">
                    </div>
                </div>
            </li>  
        </ItemTemplate>
        <FooterTemplate>
           </ul>
        </div>
        </FooterTemplate>
    </asp:Repeater>
    <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
        SelectMethod="TimKiemThuong" TypeName="BTN04.USER.TimKiemSanPham">
    </asp:ObjectDataSource>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="cphMEnuPhai" runat="server">
</asp:Content>
